Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vertica driver #9

Merged
merged 630 commits into from
Sep 16, 2024
Merged

Update vertica driver #9

merged 630 commits into from
Sep 16, 2024

Conversation

timbrownls20
Copy link
Collaborator

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

[For example cube-js#12]

Description of Changes Made (if issue reference is not provided)

[Description goes here]

igorlukanin and others added 30 commits July 4, 2024 23:19
* docs: Audit Log

* Pricing and limits

* Add more event types

* Update limits

* .

* Fix

* Revert "Fix"

This reverts commit aff4b8b.

* Add video
This versions includes fix for MaterializeInc/rust-sasl#51, which includes unreleased patch for vendored version of cyrus-sasl
* Add .editorconfig for DX convenience

* feat(cubejs-databricks-jdbc-driver): set readonly mode if no exportBicket options provided

* chore(cubejs-databricks-jdbc-driver): polish driver interfaces/implementation

* Update docs

* docs(jdbc-driver): update driver installation on macos

---------

Co-authored-by: Igor Lukanin <igor@cube.dev>
ovr and others added 26 commits September 12, 2024 16:48
BREAKING CHANGE: It was not usefull, at the same time this TERM requires a lot of libraries to be installed. It costs 148 MB of additional disk space.
* remove unneeded filter for granularities

* dedup month in standardGranularitiesParents

* feat(schema-compiler): update cube's schema to allow granularities for time dimensions

* fix custom granularity processing in time dimension

* update yaml schema compiler to process custom granularities

* Add custom granularities support to time dimension and base query

* feat(schema-compiler): update cube's schema to allow granularities for time dimensions (simple syntax)

* Add custom granularities simple syntax support to the time dimension and base query

* Rename baseGranularity → rollupGranularity

* fix schema validation

* fix custom granularity processing in BaseTimeDimension

* Moved custom granularity processing from time dimension to base query

* Revert: deep evaluateSymbolSql processing

* Implement dimensionTimeGroupedColumn for Snowflake

* Implement dimensionTimeGroupedColumn for MySQL

* Add custom granularity time intervals generation (used in rollups)

* Rewrite parseSqlInterval from regex to split

* Add tests for timeSeriesFromCustomInterval

* Add tests for yaml schema compiler

* Add tests for cube validator

* Fix overTimeSeriesQuery with custom granularities

* Add tests for sql query generation for queries with custom granularities

* return back deleted test

* Remove comment, add types

* update cube validation scheme: remove sql, add origin

* add tests for cube validator

* add another test for yaml schema compiler

* move isGranularityNaturalAligned() to utils to be reused

* Add Granularity entity and move all related processing there

also implement date_bin for postgres

* temporary comment out dimensionTimeGroupedColumn

* Fix timeSeriesFromCustomInterval generation

* Fix tests timeSeriesFromCustomInterval

* Add more tests for timeSeriesFromCustomInterval

* Fix Granularity constructor

* Add integration tests for Custom Granularities for PostgreSQL

* Fix Custom Granularities tests in CI (needs order by)

* Implement date_bin for Snowflake

* Move BaseDbRunner from postgres to separate folder

* fix customGranularity.origin init

* implement dateBin in MySQL

* fix interval math ops in MySQL

* fix postgres custom granularities tests

* Add tests for custom granularities in MySQL

* move granularityFromIntervalString from BaseQuery → Granularity

* fix granularityFromIntervalString

* improve addInterval / subtractInterval in MS SQL Query (now supports intervals with >1 time units)

* Implement dateBin for MS SQL

* Add tests for custom granularities in MS SQL

* fix 2 granularities test (actually revert the bad changes back)

* add comment for dateBin in postgresql query

* Implement dateBin for Databricks

* Implement dateBin for DuckDB

* implement dateBin for BigQuery

* extend testing fixtures with custom granularities

* fix TimeDimensionGranularity type to allow custom granularities

* Add more unit tests for granularities

* fix writing yaml with test cubes definitions containing origin with dashes

* add tests for custom granularities in testing drivers

* skip custom granularities tests for athena

* skip custom granularities tests for clickhouse

* add test snapshots for custom granularities tests for postgres

* skip custom granularities tests for mysql (some)

* add test snapshots for custom granularities tests for ms sql

* skip custom granularities tests for mssql (some)

* add test snapshots for custom granularities tests for snowflake

* add test snapshots for custom granularities tests for bigQuery

* skip custom granularities tests for databricks (some)

* add test snapshots for custom granularities tests for Databricks

* Implement dateBin for ClickHouse

* Add custom granularities integration tests for ClickHouse

* unskip custom granularities tests for clickhouse (some)

* add test snapshots for custom granularities tests for ClickHouse

* fix linting

* fix integration tests for clickhouse v22.x

* fix in dateBin for Postgresql and Bigquery

* Add char limits for granularities names in queries

* Add time series date range limit checking before generating

* add tests for limit checking in time series generation

* Improve error message for time series limit

* fix tests for time series limit

* Refactor: move isGranularityNaturalAligned from Basequery → Granularity class

* add test snapshots for custom granularities tests for MySQL

* move diffTimeUnitForInterval to BaseQuery

* fix in choosing minGranularity for granularity with origin point
cube-js#8684)

* feat(schema-compiler): implement dateBin() in CubeStoreQuery

* Add tests for dateBin in CubeStoreQuery

* add e2e tests for custom granularities with preaggregations

* Remove console.log
…8706)

Usage of upx has been disabled because it is crashing for macOS Ventura or above! It was disabled on 2024-09-05.
BREAKING CHANGE: This functionality was deprecated starting from v0.26.0. Please migrate to SECURITY_CONTEXT.
…definitions (cube-js#8708)

* fix(schema-compiler): Add missing “quarter” time unit to granularity definitions

* add tests for quarters in granularities

* fix(schema-compiler): allow custom granularities with 1 week interval definition

* more tests
…ube-js#8664)

* Update resolveSymbol & cubeReferenceProxy to support deep properties resolution (proxied custom granularities)

* Update evaluateSymbolSql to support deep properties resolution (proxied custom granularities)

* add unit tests for proxied time dimension granularities

* refactor: remove cubePropertyReferenceProxy and move required logic piece to cubeReferenceProxy

* fix func types in CubeEvaluator

* Add support for proxying predefined granularities

* Add tests for proxying predefined granularities

* fix proxying granularities, referenced from different cubes

* add tests for proxying granularities, referenced from different cubes

* Add check for undefined during custom granularities tests

* fix proxying items, referenced from different cubes/views

* rename internalPropertyName -> subPropertyName in evaluateSymbolSql

* fix after merge/rebase

* Add comments in evaluateSymbolSql

* create resolveSubProperty for unified way of subproperty resolving

* Add usefull comments

* implement proxied time dim granularity evaluation within the BaseQuery/evaluateSymbolSql area, not going to dimensionSql()

* refactoring in resolveGranularity flow

* reverted back to dimensionSql()

* fix populating granularities in the views

* add unit tests for custom granularities in views

* add integration tests for proxied granularity
@timbrownls20 timbrownls20 merged commit 8672648 into vertica_driver Sep 16, 2024
18 of 27 checks passed
@timbrownls20 timbrownls20 deleted the update-vertica-driver branch September 16, 2024 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.